package com.example.design.practice.dark.v1;

//features:
//- key: call_newapi_getUserById
//        enabled: true
//        rule: {893,342,1020-1120,%30}+
//- key: call_newapi_registerUser
//        enabled: true
//        rule: {1391198723, %10}
//- key: newalgo_loan
//        enabled: true
//        rule: {0-1000
public class DarkDemo {
    public static void main(String[] args) {
        DarkLaunch darkLaunch = new DarkLaunch();
        DarkFeature darkFeature = darkLaunch.getDarkFeature("call_newapi_getUserById");
        System.out.println(darkFeature.enabled());
        System.out.println(darkFeature.dark(893));
    }
}